package com.sxjh.entity.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class ComprehensiveReportParam {

    @ApiModelProperty("开始时间")
    @NotNull(message = "开始时间不能为空")
    @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
    private LocalDateTime startDate;

    @ApiModelProperty("结束时间")
    @NotNull(message = "结束时间")
    @DateTimeFormat(fallbackPatterns = {"yyyy-MM-dd+HH:mm:ss", "yyyy-MM-dd HH:mm:ss"})
    private LocalDateTime endDate;

}
